package com.linktco.common.utils.excel.test;

import com.linktco.common.utils.excel.annotation.Excel;
import lombok.Data;
import java.util.Date;

/**
 * 测试复杂标题的导出实体类中的子级
 * @author ren
 * @date 2021年08月23日 09:33:58
 */
@Data
public class Subject {

    @Excel(name = "科目", sort = 6,width = 25)
    private String subjectName;

    @Excel(name = "分数", sort = 7,width = 25)
    private Integer score;

    @Excel(name = "等级",width = 25, matchExp= {"${score}>=60:及格","${score}<60:不及格"})
    private String level;


    @Excel(name = "计算",width = 25, calculateExp= "${score}*10")
    private String calculate;



    @Excel(name = "考试时间", dateFormat = "yyyy-MM-dd HH:mm:ss", width = 30, sort = 8)
    private Date examTime;


    /**
     * 章节
     */
    @Excel(name = "章节", hasChildren = true, sort = 9)
    private Chapter chapter;

}
